﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.NetClasses
{
    public struct ServersList
    {
        /// <summary>
        /// Ip Server
        /// </summary>
        private string m_ipServer;
        /// <summary>
        /// Port server
        /// </summary>
        private int m_portServer;
        /// <summary>
        /// Server name
        /// </summary>
        private string m_ServerName;
        private bool m_online;
        /// <summary>
        /// Ip server
        /// </summary>
        public string IpServer { get { return m_ipServer; }}
        /// <summary>
        /// Port server
        /// </summary>        
        public int PortServer { get { return m_portServer; }}
        /// <summary>
        /// Server name
        /// </summary>
        public string ServerName { get { return m_ServerName; } }
        public bool Online { get { return m_online; } set { m_online = true; } }
        public ServersList(string name,string ip,int port,bool online)
        {
            m_ServerName=name;
            m_ipServer = ip;
            m_portServer = port;
            m_online = online;
        }
    }
}
